package com.ispeed.fluttershensu;

/**
 * @author : timmy
 * @date : 2019/1/25
 */
public class MainActivityPresenter implements MainConstant.ISpeedPresenter {

    MainConstant.ISpeedView mISpeedView;

    public MainActivityPresenter(MainConstant.ISpeedView ISpeedView) {
        mISpeedView = ISpeedView;
    }

    @Override
    public void subscribe() {

    }

    @Override
    public void unSubscribe() {

    }

    @Override
    public void startISpeed() {
        mISpeedState = true;

    }

    @Override
    public void stopISpeed() {

    }

    private boolean mISpeedState = false;

    @Override
    public boolean getSpeedState() {
        return mISpeedState;
    }
}
